package view;

import gui.Frame;

import javax.swing.JButton;
import javax.swing.JPanel;

import toolkit.Debug;

abstract public class View extends JPanel
{
	private JButton defaultButton;
	
	protected Frame frame;
	
	public void setDefaultButton(JButton button)
	{
		this.defaultButton = button;
		
		if (frame != null)
		{
			frame.getRootPane().setDefaultButton(button);
		}
	}
	
	public JButton getDefaultButton()
	{
		return defaultButton;
	}
	
	public void setFrame(Frame frame)
	{
		this.frame = frame;
	}
	
	public Frame getFrame()
	{
		return frame;
	}
	
	public void postInitGUI()
	{
		
	}
}
